/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.grt192.sensor;

import com.grt192.core.controller.Macro;
import com.grt192.event.SensorChangeListener;
import com.grt192.event.SensorEvent;

/**
 * --Working on integrating gyro
 * @author Andrew Chen <andrewtheannihilator@gmail.com>
 */
public class GRTGyro implements Macro /* , SensorChangeListener */ {
    
    private IDG500Gyro gyro;
    
    public GRTGyro(){
        /* Figure out how to construct 
        gyro = new IDG500Gyro(50, ref, temp, pollTime, null);
       */
        
        // gyro.addSensorChangeListener(this);
    }
    
    public int execute() {
        gyro.poll();
        return 0;
    }
    
    public double getAngle(){
        return gyro.getAngle();
    }
    //Do we need this?
//    public void sensorStateChanged(SensorEvent e, String key) {
//    }
    
}
